package com.bgIntlgn.client.entity.warehourse.rawMaterial;

import yuhuibear.poat.annotations.relation.Field;
import yuhuibear.poat.annotations.relation.Table;
import yuhuibear.poat.object.bean.Bean;

@Table(name = "material_storage_bill_records", constrain = "")
public class MaterialStorageBillRecord implements Bean {

	/**
	 * 对应的材料出入单据。
	 */
	@Field(name = "material_storage_id", type = "int8", constrain = " not null references material_storage_bills(id) on update cascade on delete cascade")
	private Long materialStorageId;

	/**
	 * 对应的材料。
	 */
	@Field(name = "material_id", type = "int8", constrain = " not null references materials(id) on update cascade ")
	private Long materialId;

	/**
	 * 入库价格.
	 */
	@Field(name = "price", type = "float ", constrain = " not null default 0.0")
	private Double price;

	/**
	 * 总质量
	 */
	@Field(name = "quality", type = "float", constrain = "not null default 0")
	private double quality;

	
	public Long getMaterialStorageId() {
		return this.materialStorageId;
	}

	
	public void setMaterialStorageId(Long materialStorageId) {
		this.materialStorageId = materialStorageId;
	}

	
	
	
	public Long getMaterialId() {
		return materialId;
	}

	public void setMaterialId(Long materialId) {
		this.materialId = materialId;
	}


	public Double getPrice() {
		return this.price;
	}

	
	public void setPrice(Double price) {
		this.price = price;
	}

	
	public double getQuality() {
		return this.quality;
	}

	
	public void setQuality(double quality) {
		this.quality = quality;
	}
	
}
